from building import *

cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = []

CPPPATH.append(cwd)

if GetDepend('SUPPORT_REC_DEV_EEPROM'):
    src += Glob('RecDev/RecDev_Eeprom.c') 
elif GetDepend('SUPPORT_REC_DEV_FLASHS'):
    src += Glob('RecDev/RecDev_FlashS.c') 
    if GetDepend('SUPPORT_REC_DEV_FLASHS_MEMMNG'):
        src += Glob('RecDev/RecDev_FlashS_cbMemMng.c') 
elif GetDepend('SUPPORT_REC_DEV_FLASH'):
    src += Glob('RecDev/RecDev_Flash.c') 

LOCAL_CCFLAGS = ''
# LOCAL_CCFLAGS += ' -O0'

group = DefineGroup('RecDev', src, depend=[''], CPPPATH=CPPPATH, LOCAL_CCFLAGS=LOCAL_CCFLAGS)

Return('group')
